package lintcode.NO2402;

import java.util.Scanner;

/**
 * @Author: zeng
 * @Date: 2025/05/15/18:06
 * @Description:
 **/
public class TestMain {
  public static void main(String[] args) {
//    String s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
//    String str = "";
//    for (int i = s.length() - 1; i >= 0; i--) {
//      str += s.charAt(i);
//    }
//    System.out.println(str);
//
//    StringBuffer sb = new StringBuffer(s);
//    System.out.println(sb.reverse().toString());
    //输入一个大写字母判断这个字母是26个字母中第几个
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    String s = "";
    for(int i = 0; i < str.length(); i++){
      int x = str.charAt(i)-'A'+1;
      s += (char)(26 - x +1 + 'A' - 1);
    }
    System.out.println(s);
  }

}
